package com.ljx.NoteBody.mapper;

import com.ljx.NoteBody.dto.UserDto;
import com.ljx.NoteBody.entity.User;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {

    List<User> queryAll();

    User queryUserByUsername(String username);

    int saveUser(UserDto userDto);

    User queryUserByUsernameAndPassword(String username, String password);

    int updateUserInfo(User user);
}
